apiVersion: v1
items:
- apiVersion: v1
  data:
    librariesio2fedmsg.py: |-
      import socket
      config = dict(
          topic_prefix='org.fedoraproject',
          zmq_enabled=True,
          endpoints={},
          # Openshift requires that we relay through the fedmsg relay because we don't
          # know our hostname.
          active=True,
          {% if env == 'staging' %}
          environment='stg',
          relay_inbound=["tcp://busgateway01.stg.phx2.fedoraproject.org:9941"],
          {% else %}
          environment='prod',
          relay_inbound=["tcp://busgateway01.phx2.fedoraproject.org:9941"],
          {% endif %}
          sign_messages=True,
          ssldir='/etc/pki/fedmsg/',
          cert_prefix="librariesio2fedmsg",
          certnames={
              "librariesio2fedmsg." + socket.gethostname(): "librariesio2fedmsg",
          },
      )
  kind: ConfigMap
  metadata:
    creationTimestamp: null
    name: fedmsg-config
kind: List
metadata: {}
